package com.billsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
//账单
public class Record {

    private Integer id;//账单id
    private Integer cid;//种类id
    private Integer aid;//账户id
    private Double spend;//费用
    private String comment;//评论
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date date;//日期
    private Integer uid;//用户id
    private Character incomeExpend;//1收入还是0支出
}
